#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{

    ui->setupUi(this);
     ui->graphicsView->inc(this);
     scene= new QGraphicsScene();
     ui->graphicsView->setScene(scene);
     scene->setSceneRect(0,0,1380,800);

}
void MainWindow::drawFunck()
{if(left)
    scene->addEllipse(x,y,20,20,QPen(Qt::black),QBrush(QColor(0,0,(255),(255))));
    else
    scene->addRect(x,y,30,30,QPen(Qt::black),QBrush(QColor((255),0,0,(255))));
}

MainWindow::~MainWindow()
{
    delete ui;
}
